<!DOCTYPE html>
<html>

<head>

    {include file="Public:header"}
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px;
        }

        .note-editable {
            height: 150px
        }
    </style>
</head>

<body style="color:#333;padding:3px; overflow-x: auto;">
<!-- 标题 -->
<div class="page-heade">
    <h1 class="title_color">出库申请单</h1>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered table" border="1" style="margin-bottom:0">
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="" class="form-label">出库申请单编号：</label></td>
                <td>{$data.sn}</td>
                <td style="min-width: 160px;width: 160px"><label for="" class="form-label">对应出库单编号：</label></td>
                <td>{volist name="data.ckd_sn" id="row"}{$row}&nbsp;{/volist}</td>
                <td style="min-width: 160px;width: 160px"><label for="" class="form-label">对应销售订单：</label></td>
                <td><a href="{:url('wdxsdd/view',['id'=>$data.order_id])}">{$data.order_sn}</a></td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">申请人：</label></td>
                <td>{$data.sqrmc}</td>
                <td style="min-width: 160px;width: 160px"><label for="">申请人部门：</label></td>
                <td>{$data.sqrbm}</td>
                <td style="min-width: 160px;width: 160px"><label for="">申请日期：</label></td>
                <td>{$data.sqrq}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">确认人：</label></td>
                <td>{$data.qrrmc}</td>
                <td style="min-width: 160px;width: 160px"><label for="">确认人部门：</label></td>
                <td>{$data.qrrbm}</td>
                <td style="min-width: 160px;width: 160px"><label for="">确认日期：</label></td>
                <td>{$data.qrrq}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px"><label for="">出库方式：</label></td>
                <td>{$data.ckfs}</td>
                <td style="min-width: 160px;width: 160px"><label for="">对应仓库：</label></td>
                <td>{$data.dyck}</td>
                <td style="min-width: 160px;width: 160px"><label for="">物料类型：</label></td>
                <td>{if $data.wllx==1}销售物料{elseif $data.wllx==2}生产物料{else}成品{/if}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">
                    <label for="" class="form-label">出库原因：</label>
                </td>
                <td colspan="5">{$data.ckyy}</td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">
                    <label for="" class="form-label">是否需要发货：</label>
                </td>
                <td colspan="5">{if $data.sfxyfh==1}是{else}否{/if}</td>
            </tr>
            <tr>
                <td colspan="6" style="padding: 1px">
                    <table class="table table-bordered" style="margin:0;padding: 0">
                        <tr class="info">
                            <th colspan="4" class="font-bold">收货信息</th>
                        </tr>
                        <tr>
                            <td style="min-width: 160px;width: 160px">地址：</td>
                            <td colspan="3">{$data.shdz}</td>
                        </tr>
                        <tr>
                            <td style="min-width: 160px;width: 160px">联系人：</td>
                            <td>{$data.shlxr}</td>
                            <td style="min-width: 160px;width: 160px">联系电话：</td>
                            <td>{$data.shdh}</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="6" style="padding: 1px">
                    <table class="table table-bordered" style="margin:0;padding: 0">
                        <tr class="info">
                            <th class="text-center">序号</th>
                            <th class="text-center">类型</th>
                            <th class="text-center">编号</th>
                            <th class="text-center">名称</th>
                            <th class="text-center">单位</th>
                            <th class="text-center">申请数量<span class="helpText">帮</span></th>
                            {if $data.yck==1}
                            <th>出库数量</th>
                            {/if}
                            <th class="text-center">体积(立方米)</th>
                            <th class="text-center">重量(吨)</th>
                        </tr>
                        {volist name="data.list" id="row" key="k"}
                        <tr>
                            <td>{$k+(request()->param('page')?request()->param('page'):1-1)*10}</td>
                            <td>{if $row.lx==1}销售物料{elseif $row.lx==2}生产物料{else}成品{/if}</td>
                            <td><a href="{:url('TiApply',['pid'=>$row.title])}">{$row.pro_no}</a></td>
                            <td>{$row.title_name}</td>
                            <td>{$row.unit}</td>
                            <td class="ObjectNum text-right">{$row.sqsl}</td>
                            {if $data.yck==1}
                            <td class="ObjectNum text-right">{$row.sqsl-$row.num}</td>
                            {/if}
                            <td class="ObjectNum text-right">{$row.tj}</td>
                            <td class="ObjectNum text-right">{$row.zl}</td>
                        </tr>
                        {/volist}
                        <tr class="font-bold">
                            <td colspan="5" class="text-right">小计：</td>
                            <td class="ObjectNum text-right">{$data.sqsl}</td>
                            {if $data.yck==1}
                            <td class="ObjectNum text-right">{$data.cksl}</td>
                            {/if}
                            <td class="ObjectNum text-right">{$data.tj}</td>
                            <td class="ObjectNum text-right">{$data.zl}</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="min-width: 160px;width: 160px">
                    <label for="" class="form-label">备注：</label>
                </td>
                <td colspan="5">{$data.bz}</td>
            </tr>
        </table>
        <table class="table-bordered table row-margin-top">
            <tr class="info">
                <th>状态记录</th>
            </tr>
            <tr>
                <td>
                    <li>2017年03月24日 10:30，已发货，发货单号：<a href="shipments_dan_detail.html">201703240015</a>
                        物流公司：<span>速尔物流</span> 物流单号：<span>无</span></li>
                </td>
            </tr>
        </table>
        {if $data.qrck==1}
        <div class="SuccessImg font-bold" style="margin-left: 24%">
            已确认出库
        </div>
        {/if}
    </form>
</div>
{include file="Public:footer"}
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>

<script>
    $(document).ready(function () {

        var $ObjectNum = $(".ObjectNum");
        toNum($ObjectNum);
    })
</script>
</body>

</html>
